/*
 * 首页展示
 * @Author: ljb
 * @Date: 2018-04-23 11:02:19
 * @Last Modified by: ljb
 * @Last Modified time: 2018-09-25 10:41:25
 */
<style lang="less" rel="stylesheet/less" type="text/less">

    .layout-content{
		position: absolute;
		top: 15px;
		left: 15px;
		right: 15px;
		bottom: 48px;
        background: #f0f0f0;
		border-radius: 4px;
		overflow-y: auto;
		box-sizing: border-box;
		&::-webkit-scrollbar {
			display: none;
		}
	}

</style>
<template>
	<div
		class="v-home-index layout-content">

		<div>
			<div v-if="getUserType !== 'panx'">

				<!-- <component
					:is="component_map[getUserType]"/> -->
				<customer-views
					v-if="component_map[getUserType] === 'customerViews' && getProviderType !== 1"/>
				<store-views
					v-if="component_map[getUserType] === 'storeViews' && getProviderType !== 1"/>
			</div>

			<!--<p v-else>后台首页</p>-->
		</div>

	</div>
</template>
<script>

import { mapGetters } from 'vuex';

import customerViews from './customer/views';
import storeViews from './store/views';

export default {
	components: {
		customerViews,
		storeViews,
	},
	data() {
		return {
			component_map: {
				customer: 'customerViews',
				store: 'storeViews',
			},
		};
	},
	computed: {
		...mapGetters('userToken', [
			'getUserType',
			'getProviderType',
		]),
	},
	mounted() {
	},
	methods: {
	},
};
</script>
